package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;


import cn.edu.neusoft.maxingxin231.yuejian06.Bean.CourseBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.ClubCourseIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class ClubCourseModel extends ClubRetrofitBaseModel implements ClubCourseIface<CourseBean> {
    private Retrofit retrofit;
    private LoginService loginService;

    public ClubCourseModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }

    @Override
    public void getClubCourseList(String club_id, ListListener<CourseBean> listListener) {
        Call<List<CourseBean>> call = loginService.courselist(club_id);
        callenqueueList(call,listListener);
    }
}
